package hottargui.config;

import hottargui.framework.*;

public class BetaEndGameState implements TarguiState {

	Game gameContext;
	
	public BetaEndGameState(Game game)
	{
		this.gameContext = game;
	}
	
	public boolean buy(int count, Position deploy) throws IllegalActionException {
		throw new IllegalActionException(this.getState());
	}

	public State getState() {
		return State.endGame;
	}

	public PlayerColor getWinner() throws IllegalActionException {
		Tile saltMine = gameContext.getTile(new Position(3, 3));
		return saltMine.getOwnerColor();
	}

	public boolean move(Position from, Position to, int count) throws IllegalActionException {
		throw new IllegalActionException(this.getState());
	}

	public void newGame() throws IllegalActionException {
		throw new IllegalActionException(this.getState());
	}

	public void rollDie() throws IllegalActionException {
		throw new IllegalActionException(this.getState());
	}

	public PlayerColor turnCard() throws IllegalActionException {
		throw new IllegalActionException(this.getState());
	}

}
